<?php
    header("content-type:text/html;charset=utf-8");

    class Ser{
        private $city;

        function __construct(){
            $this->city = $_GET['city'];
            $this->getWeather();
        }

        public function getWeather(){
            $url = "http://api.k780.com:88/?app=weather.future&weaid=$this->city&&appkey=10003&sign=b59bc3ef6191eb9f747dd4e83c99f2a4&format=json";
            $data = file_get_contents($url);
            print_r($data);
//            echo $data;
        }
    }
    new Ser();

?>